import { PlotsService, PlotsRo } from './plot.service';
import { Body, Controller, Delete, Get, Param, Post, Put, Query } from '@nestjs/common';


@Controller('plots')
export class PlotsController {
    constructor(private readonly PlotsService:PlotsService) {
    }
    // 获取所有小区
    @Get('all')
    async getAllPlots(@Query() query):Promise<PlotsRo>{

        return await this.PlotsService.findAll(query)
    }
    // 小区id
    @Post('getplotsNamebyId')
    async getplotsNamebyId(@Body() body:any){
        return await this.PlotsService.getplotsNamebyId(body)
    }
}
